package com.aspose.cells.a.f;

import com.aspose.cells.DateTime;
import com.aspose.cells.zasq;
import java.util.Iterator;

abstract class za implements zc {
   protected String[] a;
   protected int[] b;

   public int a() {
      return this.a.length;
   }

   public zh a(int var1) {
      zh var2 = new zh(this.a[var1]);
      var2.a(false);
      var2.a((long)this.b(var1));
      var2.a((DateTime)null);
      return var2;
   }

   public Iterator<zh> b() {
      return new Iterator<zh>() {
         private int b = 0;

         public boolean hasNext() {
            return this.b < za.this.a.length;
         }

         public zh a() {
            return za.this.a(this.b++);
         }

         public void remove() {
            throw zasq.a(7, "Removing element from ZipFile's iterator is not supported");
         }

         // $FF: synthetic method
         public Object next() {
            return this.a();
         }
      };
   }

   public int a(String var1) throws Exception {
      int var2 = this.b(var1);
      return var2 < 0 ? -1 : this.b(var2);
   }

   public int b(int var1) {
      return this.b[var1];
   }

   protected int b(String var1) {
      for(int var2 = 0; var2 < this.a.length; ++var2) {
         if (var1.equalsIgnoreCase(this.a[var2])) {
            return var2;
         }
      }

      return -1;
   }
}
